@echo off
chcp 65001 >nul
echo ========================================
echo Dinghong Cloud Screen Project One-Click Deployment
echo ========================================
echo.

echo Checking Docker status...
docker version >nul 2>&1
if errorlevel 1 (
    echo [ERROR] Docker is not running or not installed, please start Docker Desktop first
    pause
    exit /b 1
)

echo Checking Minikube status...
minikube version >nul 2>&1
if errorlevel 1 (
    echo [ERROR] Minikube is not installed, please install Minikube first
    pause
    exit /b 1
)

echo Checking kubectl status...
kubectl version --client >nul 2>&1
if errorlevel 1 (
    echo [ERROR] kubectl is not installed, please install kubectl first
    pause
    exit /b 1
)

echo.
echo Starting complete deployment process...
powershell -ExecutionPolicy Bypass -File "full-deploy.ps1"
if errorlevel 1 (
    echo [ERROR] Deployment failed
    pause
    exit /b 1
)

echo.
echo ========================================
echo Deployment completed!
echo ========================================
echo.
echo Please run the following command in a new window to enable tunnel:
echo minikube tunnel
echo.
echo Then access:
echo http://dinghong-cloud-screen.local
echo.
echo Press any key to exit...
pause >nul 